<template>
  <dict-select
    v-model="nowVal"
    allow-clear
    :dict-type="dictType"
    :placeholder="placeholder"
  ></dict-select>
</template>

<script setup lang="ts">
  import { ref } from 'vue';
  import dictSelect from '@/common/components/dict-select/index.vue';

  const props = defineProps({
    value: {
      type: String,
      default: '',
    },
    placeholder: {
      type: String,
      default: '请选择',
    },
    dictType: {
      type: String,
      default: '',
    },
  });
  //   const emit = defineEmits(['update:value']);

  const nowVal = ref(props.value);
  //   watch(
  //     () => props.value,
  //     (newVal) => {
  //       nowVal.value = newVal;
  //     }
  //   );
  //   const changeHandle = () => {
  //     emit('update:value', nowVal.value);
  //   };
</script>
